<?php

namespace Hilaoyu\LaravelExtend\Services\Captcha\Console;

use Hilaoyu\LaravelExtend\Services\Captcha\CaptchaService;
use Illuminate\Console\Command;

class CaptchaClearCacheCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'laravelExtend:captchaClearCache';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Laravel extend Captcha clear cache';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        (new CaptchaService())->captchaCacheClear();
        return 0;
    }
}
